<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../commons/commons.jsp"%>
<!DOCTYPE html>

<head>
    <meta charset="utf-8" />
    <title>Data Tables</title>
</head>
<body>
<div class="page-body">
    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header ">
                    <span class="widget-caption">
        				保姆申请详情
                    </span>
                </div>
                <div class="widget-body">
                    <form id="saveOrUpdate" class="form-horizontal form-bordered" role="form" method="get" action="${ ctx}/nannyappli/oper.do">
                    	<input type="hidden" name="id" value="${auditApplication.id }"/>
                    	<div class="form-group">
	                        <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">真实姓名</label>
	                        <div class="col-sm-10">
	                        	<input type="text" class="form-control" value="${auditApplication.truename}" disabled/>
	                        </div>
                        </div>
                        <div class="form-group">
	                        <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">身份证号码</label>
	                        <div class="col-sm-10">
	                        	<input type="text" class="form-control" value="${auditApplication.idNumber}" disabled/>
	                        </div>
                        </div>
                        <div class="form-group">
	                        <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">身份证照片</label>
	                        <div class="col-sm-10">
	                        	<img src="${auditApplication.identityImgUrl}" style="width:300px;height:600px">
	                        </div>
                        </div>
                        <div class="form-group">
	                        <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">工作类型</label>
	                        <div class="col-sm-10">
	                        	<input type="text" class="form-control" value="${workType.workType}" disabled/>
	                        </div>
                        </div>
                        <div class="form-group">
	                        <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">申请工作地点</label>
	                        <div class="col-sm-10">
	                        	<input type="text" class="form-control" value="${province.province}-->${city.city}" disabled/>
	                        </div>
                        </div>
                        <div class="form-group">
	                        <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">联系电话</label>
	                        <div class="col-sm-10">
	                        	<input type="text" class="form-control" value="${auditApplication.phone}" disabled/>
	                        </div>
                        </div>
                        <div class="form-group">
	                        <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">联系地址</label>
	                        <div class="col-sm-10">
	                        	<input type="text" class="form-control" value="${auditApplication.address}" disabled/>
	                        </div>
                        </div>
                        <div class="form-group">
	                        <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">邮编</label>
	                        <div class="col-sm-10">
	                        	<input type="text" class="form-control" value="${auditApplication.postCode}" disabled/>
	                        </div>
                        </div>
                        <div class="form-group">
	                        <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">个人简介</label>
	                        <div class="col-sm-10">
	                        	<textarea name="profile" id="profile" required="required" class="form-control nannyuser" rows="8" disabled>${auditApplication.profile}</textarea>
	                        </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <a class="btn btn-palegreen" href="javascript:save(1)">同意</a>
                                <a class="btn btn-palegreen" href="javascript:save(2)">驳回</a>
                                <a class="btn btn-palegreen" href="${ctx}/nannyappli/list.do">返回</a>
                            </div>
                     	</div>
                 	</form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
	$(document).ready(function () {
	    $('#picUpload').bootstrapValidator();
	});
	
	var save =function(pstatus){
			var url = '${ctx }' + "/nannyappli/oper.do";
			var sendData = {
				"aid":${auditApplication.id },
				"status" : pstatus
			};
			$.get(url, sendData, function(backData) {
				if (backData.status == 1) {
					window.location.href="${ctx }/nannyappli/list.do";
				} else {
					warningAlert("操作失败，请稍后重试");
				}
			});
	}

</script>
</html>
